<?php

class AgentDetail extends AbstractBox {
	
	protected $template = 'reality/agent-detail.tpl';
	
	/**
	 * @var	tslib_pibase
	 */
	protected $cObject = NULL;
	
	public function __construct($cObject) {
		$this->cObject = $cObject;
	}
	
	protected function setup() {
		$agentRepository = new AgentRepository();
		$agent = $agentRepository->getOneByAlias(Utils::get('alias'));
		MySmarty::assign('agent', $agent);
	}
}

?>